package com.wrench.elevator.tida.dao;

import java.util.List;

import org.springframework.ui.ModelMap;

import com.wrench.elevator.tida.domain.Dianti;

public interface DTGLDao {
	/**
	 * 添加电梯
	 */
	void addElevator(ModelMap map);

	/**
	 * 添加摄像头
	 */
	void addCamera(ModelMap map);

	/**
	 * 删除电梯
	 */
	int delDT(int elevator_id);

	/**
	 * 分页查询
	 */
	List<Dianti> queryDT(String name, int start, int limit);

	/**
	 * 分页Count
	 */
	int queryDTCount(String name);

	int addElevatorAndCamera(String building_name, String zhuang_danyuan,
			String elevator_num, String camera_num);

	/***
	 * 根据小区名称和撞单元查询
	 * */
	List<Dianti> queryDTByBuildingNameAndZhuangdanyuan(String building_name,
			String zhuang_danyuan, int start, int limit);

	int queryDTByBuildingNameAndZhuangdanyuanCount(String building_name,
			String zhuang_danyuan);

	void addZhuangDanyuan(ModelMap map);
}
